package lab02.test04;

public class Staff {
    private String name;
    private String id;
    private int salary;
    private int increase;


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getSalary() {
        return salary;
    }

    public void setIncrease(int increase) {
        this.increase = increase;
    }

    public int getIncrease() {
        return increase;
    }

    public int sum(int getSalary, int getIncrease) {
        int sum = getSalary() + getIncrease();
        return sum;
    }

    public void staff() {
        System.out.println("员工姓名:" + getName());
        System.out.println("员工ID:" + getId());
        System.out.println("基本工资：" + getSalary());
        System.out.println("增长额：" + getIncrease());
        System.out.println("总工资：" + sum(getSalary(), getIncrease()));
    }
}
